package com.shop.admin.entity;

import com.shop.admin.valid.AddGroup;
import com.shop.admin.valid.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * (ShopSlideshow)实体类
 *
 * @author makejava
 * @since 2022-09-20 17:04:39
 */
@Data
public class ShopSlideshow implements Serializable {
    private static final long serialVersionUID = 528393617485574938L;
    /**
     * 主键
     */
    @NotNull(message = "修改必须指定id",groups = {UpdateGroup.class})
    @Null(message = "新增不能指定id",groups = {AddGroup.class})
    private Integer id;
    /**
     * 图片地址
     */
    @URL(message = "图片必须是一个合法的url地址",groups={AddGroup.class, UpdateGroup.class})
    private String imgurl;
    /**
     * 点击后路径
     */
    private String clickhref;
    /**
     * 组织id
     */
    private Integer orgId;

}

